package com.kantboot.business.ac.repository;

import com.kantboot.business.ac.domain.entity.BusAcRechargeProductPhoneType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface BusAcRechargeProductPhoneTypeRepository
        extends JpaRepository<BusAcRechargeProductPhoneType,Long>
{

    @Query("""
            FROM BusAcRechargeProductPhoneType
            ORDER BY priority DESC
            """)
    List<BusAcRechargeProductPhoneType> findAll();

}
